package dao;

import exceptions.DatabaseException;
import java.util.List;

/**
 *
 * @author Alejandro
 */
public interface BaseDAO {
    public void insert(Object obj) throws DatabaseException;
    public void deleteById(int id) throws DatabaseException;
    public void updateById(Object obj) throws DatabaseException;
    public List<Object> findAll() throws DatabaseException;
    public Object findById(int id) throws DatabaseException;
    public List<Object> findByNameOrSurname(String query) throws DatabaseException;
}
